﻿@using System.Globalization
@model IEnumerable<WebApplication.Models.Temp>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayName("Work")
        </th>
        <th>
            @Html.DisplayName("Test")
        </th>
        <th>
            @Html.DisplayName("Time")
        </th>
        <th>
            @Html.DisplayName("Step")
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayName(item.idWork.ToString())
        </td>
        <td>
            @Html.DisplayName(item.test)
        </td>
        <td>
            @Html.DisplayName(item.dateTime.ToString(CultureInfo.CurrentCulture))
        </td>
        <td>
            @Html.DisplayName(item.stap.ToString())
        </td>
        <td>
           
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
    </tr>
}

</table>
